package main.pojo;

import java.util.Date;

/**
 * 门店
 * @TableName STORES
 */

public class Stores {
    /**
     * 主键
     */
    private String id;

    /**
     * 店名
     */
    private String name;

    /**
     * 经营者
     */
    private String proprietor;

    /**
     * 地址
     */
    private String address;

    /**
     * 固话
     */
    private String phone;

    /**
     * 开门时间
     */
    private Date worktimestart;

    /**
     * 关门时间
     */
    private Date worktimeend;

    /**
     * 评分
     */
    private Integer score;

    /**
     * 特色
     */
    private String feature;

    /**
     * 介绍
     */
    private String introduce;

    /**
     * 创建者
     */
    private String creator;

    /**
     * 创建时间
     */
    private Date createDate;

    /**
     * 更新者
     */
    private String updater;

    /**
     * 更新时间
     */
    private Date updateDate;

    /**
     * 店主
     */
    private String operator;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getProprietor() {
        return proprietor;
    }

    public void setProprietor(String proprietor) {
        this.proprietor = proprietor;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getWorktimestart() {
        return worktimestart;
    }

    public void setWorktimestart(Date worktimestart) {
        this.worktimestart = worktimestart;
    }

    public Date getWorktimeend() {
        return worktimeend;
    }

    public void setWorktimeend(Date worktimeend) {
        this.worktimeend = worktimeend;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public String getFeature() {
        return feature;
    }

    public void setFeature(String feature) {
        this.feature = feature;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdater() {
        return updater;
    }

    public void setUpdater(String updater) {
        this.updater = updater;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Stores stores = (Stores) o;

        if (id != null ? !id.equals(stores.id) : stores.id != null) return false;
        if (name != null ? !name.equals(stores.name) : stores.name != null) return false;
        if (proprietor != null ? !proprietor.equals(stores.proprietor) : stores.proprietor != null) return false;
        if (address != null ? !address.equals(stores.address) : stores.address != null) return false;
        if (phone != null ? !phone.equals(stores.phone) : stores.phone != null) return false;
        if (worktimestart != null ? !worktimestart.equals(stores.worktimestart) : stores.worktimestart != null)
            return false;
        if (worktimeend != null ? !worktimeend.equals(stores.worktimeend) : stores.worktimeend != null) return false;
        if (score != null ? !score.equals(stores.score) : stores.score != null) return false;
        if (feature != null ? !feature.equals(stores.feature) : stores.feature != null) return false;
        if (introduce != null ? !introduce.equals(stores.introduce) : stores.introduce != null) return false;
        if (creator != null ? !creator.equals(stores.creator) : stores.creator != null) return false;
        if (createDate != null ? !createDate.equals(stores.createDate) : stores.createDate != null) return false;
        if (updater != null ? !updater.equals(stores.updater) : stores.updater != null) return false;
        if (updateDate != null ? !updateDate.equals(stores.updateDate) : stores.updateDate != null) return false;
        return operator != null ? operator.equals(stores.operator) : stores.operator == null;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (name != null ? name.hashCode() : 0);
        result = 31 * result + (proprietor != null ? proprietor.hashCode() : 0);
        result = 31 * result + (address != null ? address.hashCode() : 0);
        result = 31 * result + (phone != null ? phone.hashCode() : 0);
        result = 31 * result + (worktimestart != null ? worktimestart.hashCode() : 0);
        result = 31 * result + (worktimeend != null ? worktimeend.hashCode() : 0);
        result = 31 * result + (score != null ? score.hashCode() : 0);
        result = 31 * result + (feature != null ? feature.hashCode() : 0);
        result = 31 * result + (introduce != null ? introduce.hashCode() : 0);
        result = 31 * result + (creator != null ? creator.hashCode() : 0);
        result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
        result = 31 * result + (updater != null ? updater.hashCode() : 0);
        result = 31 * result + (updateDate != null ? updateDate.hashCode() : 0);
        result = 31 * result + (operator != null ? operator.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "Stores{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", proprietor='" + proprietor + '\'' +
                ", address='" + address + '\'' +
                ", phone='" + phone + '\'' +
                ", worktimestart=" + worktimestart +
                ", worktimeend=" + worktimeend +
                ", score=" + score +
                ", feature='" + feature + '\'' +
                ", introduce='" + introduce + '\'' +
                ", creator='" + creator + '\'' +
                ", createDate=" + createDate +
                ", updater='" + updater + '\'' +
                ", updateDate=" + updateDate +
                ", operator='" + operator + '\'' +
                '}';
    }
}